package com.crimax.lanproj.controller;
import java.io.IOException;
import java.util.ResourceBundle;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import com.crimax.lanproj.properties.LoanPropertiesHolder;
public class ListService implements Controller {
  protected final Log logger = LogFactory.getLog(getClass());
  
  ResourceBundle credits = ResourceBundle.getBundle("lan");

  
  public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    logger.info("Return View");
    
    LoanPropertiesHolder holder = LoanPropertiesHolder.getSingletonObject();
    
    request.setAttribute("properties",holder);
    
    //List<LoanProperties> blha = (List<LoanProperties>) request.getAttribute("properties");
    
    return new ModelAndView("lanasnabbt.jsp");
  }
} 